<?php

namespace app\admin\model\air;

use think\Model;
use app\admin\model\Area;


class CustomTravel extends Model
{

    

    

    // 表名
    protected $name = 'air_custom_travel';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    





    public function scity()
    {
        return $this->belongsTo(Area::class, 'start_area_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function ecity()
    {
        return $this->belongsTo(Area::class, 'end_area_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


}
